package com.gl.common.util;

/**
 *
 * @Description
 *
 * @Author  ???
 * @Date    2018年1月10日下午4:51:56
 * @Version 1.0
 */
public class Exceptions {
	private Exceptions() {
	}
	/**
	 */
	public static RuntimeException unchecked(Throwable ex) {
		if (ex instanceof RuntimeException) {
			return (RuntimeException) ex;
		} else {
			return new RuntimeException(ex);
		}
	}
}
